package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 意见反馈对象 feedback
 *
 * @author Wubk
 * @date 2022-05-22
 */
@Data
@Accessors(chain = true)
public class Feedback implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(name = "id", value = "意见反馈id")
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    @ApiModelProperty(name = "name", value = "用户名")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(name = "phone", value = "联系方式")
    private String phone;

    /** 反馈时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "feedback", value = "反馈时间,格式yyyy-MM-dd", dataType = "Date")
    private Date feedback;

    /** 反馈内容 */
    @Excel(name = "反馈内容")
    @ApiModelProperty(name = "userCode", value = "用户账号")
    private String detail;

    /** 反馈图片 */
    @Excel(name = "反馈图片")
    @ApiModelProperty(name = "img", value = "反馈图片")
    private String img;

    /** 联系人 */
    @Excel(name = "联系人")
    @ApiModelProperty(name = "createdBy", value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updatedTime;

}
